<?php
/**
 * Yii view login
 *
 * @author luunguyen
 * @since Dec 24, 2012 - 5:13:27 PM
 */
?>
<div id="login" class="animate form position">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'login-form',
        'enableAjaxValidation' => true,
        'htmlOptions' => array('class' => 'form-login')
    ));
    ?>
    <div class="content-login">
        <a href="#" class="logo"></a>

        <div class="inputs">
            <i class="icon-user first-icon"></i>
            <?php
            echo $form->textField($model, 'username', array(
                'placeholder' => $model->getAttributeLabel('username'),
                'class' => 'first-input',
            ));
            ?>

            <div class="clear"></div>
            <i class="icon-key"></i>
            <?php
            echo $form->passwordField($model, 'password', array(
                'placeholder' => $model->getAttributeLabel('password'),
                'class' => 'last-input',
            ));
            ?>
            <div class="clear"></div>
            <?php echo $form->error($model, 'username'); ?>
            <?php echo $form->error($model, 'password'); ?>
        </div>        
        <div class="remember">
            <?php
            echo $form->checkBox($model, 'rememberMe');
            ?>
            <?php
            echo $form->label($model, 'rememberMe', array(''));
            ?>
        </div>
                <div class="link">
                    <a href="<?php echo Admin::passUrl(); ?>">
        <?php echo Yii::t('user', 'Forgot Password') ?>
                    </a>
                </div>
        <div class="clear"></div>
        <div class="button-login">
            <input type="submit" class="btn btn-large" 
                   value="<?php echo Yii::t('user', 'Sign In') ?>">
        </div>
    </div>

    <div class="footer-login">
        <div class="clear"></div>
    </div>

    <?php $this->endWidget(); ?>

    <div class="info-message">

    </div>

</div>